Python/VIT/sem-1/ex-14/1. String that has an 'a' followed by 0 or 'b's/String that has an 'a' followed by 0 or 'b's.py
import re
s = input("Enter statement: ")
res = re.findall(r'ab*',s)
print(res)
import re
s = input("Enter statement: ")
res = re.findall(r'ab*',s)
print(res)